import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;
import org.springframework.http.converter.json.GsonBuilderUtils;

public class test {
    public static void main(String[] args) {
        ApplicationContext context = new ClassPathXmlApplicationContext("bean.xml");
        demo1 hello1 = (demo1) context.getBean("name");
        hello1.show();
        demo2 hello = (demo2) context.getBean("name2");
        hello.show();
    }
}
